package com.netease.nim.chatroom.demo.meeting.fragment.tab;

import com.netease.nim.chatroom.demo.R;
import com.netease.nim.chatroom.demo.meeting.fragment.ChatRoomRTSFragment;

/**
 * Created by hzxuwen on 2016/10/27.
 */

public class RTSTabFragment extends ChatRoomTabFragment {
    private ChatRoomRTSFragment fragment;

    @Override
    protected void onInit() {
        findViews();
    }

    @Override
    public void onCurrent() {
        super.onCurrent();
        if (fragment != null) {
            fragment.onCurrent();
        }
    }

    private void findViews() {
        if (fragment == null) {
            fragment = (ChatRoomRTSFragment) getActivity().getSupportFragmentManager().findFragmentById(R.id.chat_room_rts_fragment);
        }
    }
}
